package com.xiyou.leetcode;


public class Test {

    {
        System.out.println("非静态代码块");
    }

    static {
        System.out.println("静态代码块");
    }

    private final static Test a = new Test();


    private Test() {
        System.out.println("构造函数");
    }

    public static Test getA() {
        return a;
    }

    public static void main(String[] args) {
        Test.getA();
    }
}
